package org.study.mybatisplus.dynamic.boot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.study.mybatisplus.dynamic.boot.model.IotAlarmConfig;

import java.util.List;
import java.util.Map;

/**
 * 告警配置
 *
 * @author doveylovey
 * @version v1.0.0
 * @email 1135782208@qq.com
 * @date 2024年10月08日
 */
@Mapper
public interface IotAlarmConfigMapper extends BaseMapper<IotAlarmConfig> {
    Map<String, Object> selectConfigStatistics(@Param("projectId") Long projectId);

    Map<String, Object> selectLogStatistics(@Param("projectId") Long projectId,
                                            @Param("startTime") String startTime,
                                            @Param("endTime") String endTime);

    List<Map<String, Object>> selectLogDayStatistics(@Param("projectId") Long projectId);
}
